package com.zhanbo.zhanbowymusic.main.featured.adapter;

import android.content.Context;

import com.mwx.baselib.base.BaseBindingAdapter;
import com.mwx.baselib.bean.PlayListBean;
import com.mwx.baselib.bean.PlayListItemBean;
import com.mwx.baselib.utils.GlideUtils;
import com.mwx.baselib.utils.MLog;
import com.zhanbo.zhanbowymusic.R;
import com.zhanbo.zhanbowymusic.databinding.ItemRecommendBinding;
import com.zhanbo.zhanbowymusic.databinding.ItemVipHitBinding;

/**
 * 首页推荐歌单
 */
public class FeaturedRecommendedPlayListAdapter extends BaseBindingAdapter<PlayListItemBean, ItemRecommendBinding> {
    public FeaturedRecommendedPlayListAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_recommend;
    }

    @Override
    protected void onBindItem(ItemRecommendBinding binding, PlayListItemBean item) {
        GlideUtils.loadImage(context,item.getCoverImg(),binding.ivHead);
        binding.tvTitle.setText(item.getName()+"");
        binding.tvPlayCount.setText(item.getPlayCount()+"");
    }
}
